package com.cn.goodsadmin.dao;


import com.cn.goodsadmin.common.PageQueryResult;
import com.cn.goodsadmin.po.PanicLog;

import java.util.List;

public interface IPanicLogDao {

  /**
   * 更新操作
   * @param t
   */
  void update(PanicLog t) throws Exception;

  /**
   * 删除操作
   * @param t
   */
  void delete(PanicLog t) throws Exception;

  /**
   * 增加操作
   * @param t
   */
  void save(PanicLog t) throws  Exception;

  /**
   * 通过订单状态来查询对应的记录
   * @param status
   * @return
   * @throws Exception
   */
  List<PanicLog>  findPanicLogByStatus(int status,String gid)throws Exception;

  /**
   * 查找所有的抢购信息分页
   * @param pageindex
   * @param pagesize
   * @param appid
   * @param type
   * @param state
   * @return
   * @throws Exception
   */
  PageQueryResult<DestDTO> findPanicLog(int pageindex, int pagesize, int appid, Integer type, int state)throws Exception;

  List<PanicLog>  findPanicLogByPid(String pid,String openid,Integer appid)throws Exception;

}
